#pragma strict

var instruction1_prefab:Transform;
var instruction2_prefab:Transform;

private var instruction_menu:int;
private var background:Transform;

function Start () {
	instruction_menu  = 0;
	background = Instantiate(instruction1_prefab);
}

function Update () {
	if (Input.GetButtonDown("Enter")) {
		if (instruction_menu == 0) {
			instruction_menu = 1;
			Destroy(background.gameObject);
			background = Instantiate(instruction2_prefab);
		}
		else {
//			Destroy(background.gameObject);
			Application.LoadLevel("GameScene");			
		}
	}
}

function OnGUI() {
	
}